package org.example.cet.demos.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.cet.demos.domain.dto.PaperDto;
import org.example.cet.demos.domain.dto.PapersDto;
import org.example.cet.demos.domain.po.Options;
import org.example.cet.demos.domain.po.Papers;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.cet.demos.domain.po.Questions;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hq
 * @since 2024-12-18
 */
@Mapper
public interface PapersMapper extends BaseMapper<Papers> {
//    List<PaperDto> getPaper(Long id);
//    List<PapersDto> getList();
    void delete(Long id);
    void insertPaper(Papers paper);
    void insertQuestion(Questions question);
    void insertOptions(Options options);
//    List<Questions> getQuestionsByType(int type);
//    List<Questions> getQuestionsByPaperId(int paperId);
    ArrayList<Papers> getPage(Long id);

    List<PapersDto> getPaperList();

    List<Map<String,Object>> getPaper(Long id);
}
